import { Base } from '../utils/base.js';

class Store extends Base {
    constructor() {
        super();
    }
	store_join_remark(callback) {
	    var params = {
	        url: 'store/storeJoinRemark',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//分类
	get_cate(callback) {
	    var params = {
	        url: 'store/cateList',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//申请入驻
	join_apply(data,callback) {
	    var params = {
	        url: 'store/apply',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//详情
	get_detail(callback) {
	    var params = {
	        url: 'store/detail',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//申请详情
	get_apply_detail(callback) {
	    var params = {
	        url: 'store/applyDetail',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//核销记录
	get_hx_list(data,callback) {
	    var params = {
	        url: 'daodian/hxList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//店铺劵下单预览
	get_prev_order(data,callback) {
	    var params = {
	        url: 'store/prevOrder',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//劵下订单
	create_voucher_order(data,callback) {
	    var params = {
	        url: 'store/createVoucherOrder',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//劵订单
	get_voucher_order_list(data,callback) {
	    var params = {
	        url: 'store/voucherOrderList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//核销订单详情
	hexiao_info(data,callback) {
	    var params = {
	        url: 'store/voucherOrderDetail',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//核销
	hx(data,callback) {
	    var params = {
	        url: 'store/voucherOrderHx',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//删除
	voucher_order_del(data,callback) {
	    var params = {
	        url: 'store/voucherOrderDel',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//取消
	voucher_order_cancel(data,callback) {
	    var params = {
	        url: 'store/voucherOrderCancel',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//商家设计劵
	store_set_voucher(data,callback) {
	    var params = {
	        url: 'store/storeSetVoucher',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//商家设计劵
	voucher_discount_list(callback) {
	    var params = {
	        url: 'store/voucherDiscountList',
	        type: 'get',
		
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//商家图片
	store_set_images(data,callback) {
	    var params = {
	        url: 'store/images',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	qrcode(callback) {
	    var params = {
	        url: 'store/qrcode',
	        type: 'get',
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//评论列表
	get_comment_list(data,callback) {
	    var params = {
	        url: 'store/commentList',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//收银支付
	create_order(data,callback) {
	    var params = {
	        url: 'store/createOrder',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//获取播报订单
	get_read_order(callback) {
	    var params = {
	        url: 'store/readOrder',
	        type: 'get',
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	}
	//获取员工列表
	get_staff_list(data,callback) {
	    var params = {
	        url: 'store/staffList',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//获取员工详情
	get_staff_detail(data,callback) {
	    var params = {
	        url: 'store/staffDetail',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//编辑员工
	staff_set(data,callback) {
	    var params = {
	        url: 'store/staffSet',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//删除员工
	staff_del(data,callback) {
	    var params = {
	        url: 'store/staffDel',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//抖音链接添加
	douyin_add(data,callback) {
	    var params = {
	        url: 'store/addDouyin',
	        type: 'post',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//收银计算赠送积分
	money_score_sum(data,callback) {
	    var params = {
	        url: 'store/scoreSum',
	        type: 'post',
			data:data,
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	}
	//店铺数据
	statistics(data,callback) {
	    var params = {
	        url: 'store/statistics',
	        type: 'get',
			data:data,
	        loading: true,
	    };
	    this.apiRequest(params, callback);
	}
	//获取折扣
	get_discount_list(callback) {
	    var params = {
	        url: 'store/getDiscountList',
	        type: 'get',
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	}
	//店长推广明细
	get_tg_list(data,callback) {
	    var params = {
	        url: 'store/getTgList',
	        type: 'get',
			data:data,
	        loading: false,
	    };
	    this.apiRequest(params, callback);
	}
}

export { Store };
